﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lot.WebClient.DomainExtractor
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    public class DomainExtractor
    {
        static public string GetDomain(string url)
        {
            Uri uri = new Uri(url);

            DomainName n = new DomainName(uri.Authority);

            return n.Domain+"."+n.TLD;
        }
      
        


    }
}
